<?php
$this->load("header");
$this->navbar();

foreach ($this->reslt as $key => $value) {
    ?>
           
<div class="bread_crumb" style="margin-left: 30px">
    &laquo;  <a href="manage_users?details=<?php echo $value['userid'];?>">Back</a>
  </div>
<!---<div class="add_div">-->
<div style="min-width: 250px;max-width:300px;margin-top: 2.5%;margin-left: 20px;">
    <h5 style="margin-left:10px;color:blue">PERMISSIONS</h5>
    <form role="form"  action=""  method="POST">
        <div class="form-group" id="add_field">
            <label for="exampleInputEmail1">Module</label>
            <input type="text" class="form-control" id="exampleInputEmail1"  name="module" value="<?php echo $value['module'];?>" readonly="readonly">
        </div>
     
<!--            <input type="hidden" class="form-control" id="exampleInputEmail1"  name="id" value="<?php //echo $value['p_id'];?>" readonly="readonly">
       
  -->
              <div class="form-group"  id="add_field">
            <label for="exampleInputPassword1">Add permission</label>
            <select class="form-control" required="required" name="Addd">
                <option value="<?php echo $value['Addd'];?>"><?php echo $value['Addd'];?></option>
               <?php  if($value['Addd'] == "No") { 
       echo '<option value="Yes">Yes</option>';
               } else {
                 echo '<option value="No">No</option>';
               }
                  ?>
            </select>
        </div>
              <div class="form-group"  id="add_field">
            <label for="exampleInputPassword1">Delete permission</label>
            <select class="form-control" required="required" name="Del">
                    <option value="<?php echo $value['Del'];?>"><?php echo $value['Del'];?></option>
                 <?php  if($value['Del'] == "No") { 
       echo '<option value="Yes">Yes</option>';
               } else {
                 echo '<option value="No">No</option>';
               }
                  ?>
            </select>
        </div>
                  <div class="form-group"  id="add_field">
            <label for="exampleInputPassword1">Edit permission</label>
            <select class="form-control" required="required" name="Edit">
                <option value="<?php echo $value['Edit'];?>"><?php echo $value['Edit'];?></option>
                 <?php  if($value['Edit'] == "No") { 
       echo '<option value="Yes">Yes</option>';
               } else {
                 echo '<option value="No">No</option>';
               }
                  ?>
            </select>
        </div>
<?php }?> 

        <div style="clear: both;float:right">
            <button type="submit" class="btn btn-success" >Save</button></div>
    </form>

</div>
<?php
$this->load("footer");
?>
